﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="wrapper">
        <div class="content">
            <table style="width: 100%;">
                <tr>
                    <td colspan="2">
                        <p class="title">
                            Trains/Fare/Accommodation Availability Between Important Stations</p>
                    </td>
                </tr>
                <tr>
                    <td>
                        Source Station:
                        <td>
                            <asp:DropDownList ID="ddlSourceStation" runat="server" DataSourceID="StationDS" DataTextField="StationName"
                                DataValueField="StationID">
                            </asp:DropDownList>
                            <asp:SqlDataSource ID="StationDS" runat="server" ConnectionString="<%$ ConnectionStrings:ORRSConnectionString %>"
                                SelectCommand="SELECT * FROM [Station]"></asp:SqlDataSource>
                        </td>
                </tr>
                <tr>
                    <td>
                        Destination Station:
                        <td>
                            <asp:DropDownList ID="ddlDestStation" runat="server" DataSourceID="StationDS" DataTextField="StationName"
                                DataValueField="StationID">
                            </asp:DropDownList>
                        </td>
                </tr>
                <tr>
                    <td>
                        Class:
                        <td>
                            <asp:DropDownList ID="ddlClass" runat="server" DataSourceID="ClassDS" DataTextField="ClassName"
                                DataValueField="ClassID">
                            </asp:DropDownList>
                            <asp:SqlDataSource ID="ClassDS" runat="server" ConnectionString="<%$ ConnectionStrings:ORRSConnectionString %>"
                                SelectCommand="SELECT * FROM [Class]"></asp:SqlDataSource>
                        </td>
                </tr>
                <tr>
                    <td>
                        Journey Date:<td>
                            <asp:Label ID="lblJourneyDate" runat="server" Text="Today"></asp:Label>&nbsp;<asp:Button
                                ID="btnJD" runat="server" Text="..." CssClass="JDbtn" 
                                onclick="btnJD_Click" />
                            <asp:Calendar ID="cldJD" runat="server" BackColor="White" CssClass="JDSelect" 
                                onselectionchanged="cldJD_SelectionChanged" Visible="False">
                                <DayHeaderStyle Height="50px" />
                            </asp:Calendar>
                    </td>
                </tr>
                <tr>
                    <td>
                        Train Type:<td>
                            <asp:DropDownList ID="ddlTrainType" runat="server" DataSourceID="TrainTypeDS" 
                                DataTextField="TypeName" DataValueField="TypeID">
                            </asp:DropDownList>
                            <asp:SqlDataSource ID="TrainTypeDS" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:ORRSConnectionString %>" 
                                SelectCommand="SELECT * FROM [TrainType]"></asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnGetDetail" runat="server" Text="Get Details" 
                            onclick="btnGetDetail_Click" />
                        <td>
                            &nbsp;
                        </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
